package org.learn.spring5;

public class User {

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    private String userName;
    private Integer age;

    public void setEmail(String email) {
        this.email = email;
    }

    private String email;

    public void addUser() {

        System.out.println("添加一个用户。。。。");
    }

    public void getUserInfo() {
        System.out.println("userName:" + userName);
        System.out.println("age:" + age);
    }

    @Override
    public String toString() {
        return "User{" +
                "userName='" + userName + '\'' +
                ", age=" + age +
                ", email='" + email + '\'' +
                '}';
    }
}
